<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.nuc.kl.module.usermanager.entity.People" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>软件工程专业知识管理体系</title>
    
	<%@ include file="/WEB-INF/jsp/public/commons.jspf" %>
	
	
	<script type="text/javascript">
			function addWin(a){
						var src = $(a).attr('title');
						console.info(src);
						var title = $(a).html();
						addWind(src,title);
			}
			
			function addWind(src,title){
				if($('#tt').tabs('exists' ,title)){
					$('#tt').tabs('select',title);
					window.frames["frame"].$('#t_user').datagrid('reload');
				} else {
					$('#tt').tabs('add',{   
					    title:title,   
					    content:'<iframe name=frame frameborder=0 style=width:100%;height:100% src='+ src +' ></iframe>',   
					    closable:true  
					});  
				}
			}
			
			function closeWin(title){
				var pp = $('#tt').tabs('getSelected');   
				var title = pp.panel('options').title;
				$('#tt').tabs('close',title);
			}
			
			$(function(){
				$('a[title]').click(function(){
				addWin(this);});
			});
	</script>
	
	<style type="text/css">
	
		body{
			margin:0px;
			padding:0px;
		}
	
	
		.menuColor{
			width:100%;
			text-align: center;
			background-color:#E0ECFF;
			padding:5px;
			margin:2px;
			clear: both;
			
		}
		
		.menuleft{
			width:160px;
			text-align: left;
			background-color:#E0ECFF;
			padding:5px;
			margin:2px;
			
		}
		
	</style>
	
  </head>
  
  <body>
		<div id="cc" class="easyui-layout" fit=true style="width:100%;height:100%;">  
		    <div region="north" title="" style="height:80px;">
		    	
		    	<span>
			    	<img alt="" src="style/images/logo.gif" style="height:74px;">
			    
			    	<span style="font-family:华文行楷;font-size:56px;margin-top:0px;vertical-align: 0.3em">　软件工程专业知识管理体系</span>
					　　　　　　　　　　　　　　　
	<span style="">欢迎【<%
				    		if(session.getAttribute("people") != null){
				    			People people = (People)session.getAttribute("people");
				    			out.write(people.getName());
				    		}
				    
				    	
				    
				    	%>】登录      <a href="">注销 </a></span>
			    	
		    	</span>
		    
		    </div>  
		    
		    <div region="south" title="" style="height:40px;text-align: center">
		    	<span style="font-size:12px;color:#46A3FF">帮助中心 | 网站客服 | 投诉中心 | 网站协议</span><br/>
       			<span style="font-size:11px;color:#666;margin-top:35px;margin-bottom:0px">©2014 中北大学</span>
		    
		    </div>  
		     
		    <div region="west"  iconCls="icon-ok" title="菜单列表" style="width:200px;" split="true">
				<div id="aa" class="easyui-accordion" fit=true >  

					<s:if test="#session.people!=null">

					<%-- 显示一级菜单 --%>
					<s:iterator value="#application.topPrivilegeList" status="st">
					
						<s:if test="#session.list.contains(name)">
							<div title="${name}"  style="overflow:hidden;padding:10px;" 
								<s:if test='st.index == 0'>
									selected="true"  
								</s:if>
							>
							
								<%-- 显示二级菜单 --%>
								<s:iterator value="children">
									<s:if test="#session.list.contains(name)">
									<div class="menuColor"><a title="${pageContext.request.contextPath}${url}.action" > ${name}</a> </div>
											
									</s:if>
								</s:iterator>
							</div>
						</s:if>
					</s:iterator>
			
 	</s:if>
				</div>  
		    </div>  
		    
		    <div region="center"  title="" style="padding:1px" border=0>
				<div id="tt" class="easyui-tabs" fit=true style="width:520px;height:250px;">  

				</div>  
		    </div>  
		</div>  
  	
  </body>
</html>
